import request from '@/utils/request';

// 查询
export function listeasybao(query) {
    return request({
        url: '/commodity/information/list',
        method: 'get',
        params: query
    })
}

export function addeasybao(data) {
    return request({
        url: '/commodity/information',
        method: 'post',
        data
    })
}

export function editeasybao(data) {
    return request({
        url: '/commodity/information',
        method: 'put',
        data
    })
}

export function deleasybao(data) {
    return request({
        url: `/commodity/information/` + data,
        method: 'delete',
    })
}

export function province(params) {
    return request({
        url: `/commodity/administration/province`,
        method: 'get',
        params
    })
}

export function city(params) {
    return request({
        url: `/commodity/administration/city`,
        method: 'get',
        params
    })
}

export function district(params) {
    return request({
        url: `/commodity/administration/district`,
        method: 'get',
        params
    })
}